package com.zhao.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @TableId(type = IdType.AUTO)
    private Integer userId;
    private String  userAccount;
    private String  userPass;
    private String  userName;
    private String  userEmail;
    private String  userIphone;
    private String ip;
    private String status;
    private String salt; //盐
    private String ipHome;
    @TableLogic //逻辑删除注解
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private String[] rids;
    @TableField(exist = false)
    private List<String> perms;
    @TableField(exist = false)
    private String rname;               //角色
    @TableField(exist = false)
    private Statistic statistic;               //文章信息
    @TableField(exist = false)
    private Wallet wallet;               //用户详细信息
    @TableField(exist = false)
    private String follow;               //关注
}
